.class Lcom/xingbook/park/activity/ai;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/tencent/tauth/b;


# instance fields
.field final synthetic a:Lcom/xingbook/park/activity/LoginAct;


# direct methods
.method constructor <init>(Lcom/xingbook/park/activity/LoginAct;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/park/activity/ai;->a:Lcom/xingbook/park/activity/LoginAct;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/park/activity/ai;)Lcom/xingbook/park/activity/LoginAct;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/ai;->a:Lcom/xingbook/park/activity/LoginAct;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 3

    iget-object v0, p0, Lcom/xingbook/park/activity/ai;->a:Lcom/xingbook/park/activity/LoginAct;

    const-string v1, "\u60a8\u53d6\u6d88\u4e86QQ\u8d26\u53f7\u767b\u5f55"

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    return-void
.end method

.method public a(Lcom/tencent/tauth/d;)V
    .locals 3

    iget-object v0, p0, Lcom/xingbook/park/activity/ai;->a:Lcom/xingbook/park/activity/LoginAct;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "\u767b\u5f55\u5f02\u5e38\uff1a"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p1, Lcom/tencent/tauth/d;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p1, Lcom/tencent/tauth/d;->a:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    return-void
.end method

.method public a(Ljava/lang/Object;)V
    .locals 3

    :try_start_0
    iget-object v0, p0, Lcom/xingbook/park/activity/ai;->a:Lcom/xingbook/park/activity/LoginAct;

    const-string v1, "\u83b7\u53d6QQ\u6388\u6743\u4fe1\u606f\u00b7\u00b7\u00b7"

    invoke-static {v0, v1}, Lcom/xingbook/park/activity/LoginAct;->a(Lcom/xingbook/park/activity/LoginAct;Ljava/lang/String;)V

    check-cast p1, Lorg/json/JSONObject;

    const-string v0, "openid"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/ai;->a:Lcom/xingbook/park/activity/LoginAct;

    const-string v1, "openid"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/xingbook/park/activity/LoginAct;->b(Lcom/xingbook/park/activity/LoginAct;Ljava/lang/String;)V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/activity/ai;->a:Lcom/xingbook/park/activity/LoginAct;

    invoke-static {v0}, Lcom/xingbook/park/activity/LoginAct;->d(Lcom/xingbook/park/activity/LoginAct;)Lcom/tencent/tauth/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/tencent/tauth/c;->c()Lcom/tencent/connect/b/u;

    move-result-object v0

    new-instance v1, Lcom/tencent/connect/a;

    iget-object v2, p0, Lcom/xingbook/park/activity/ai;->a:Lcom/xingbook/park/activity/LoginAct;

    invoke-virtual {v2}, Lcom/xingbook/park/activity/LoginAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2, v0}, Lcom/tencent/connect/a;-><init>(Landroid/content/Context;Lcom/tencent/connect/b/u;)V

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v2, Lcom/xingbook/park/activity/aj;

    invoke-direct {v2, p0, v1}, Lcom/xingbook/park/activity/aj;-><init>(Lcom/xingbook/park/activity/ai;Lcom/tencent/connect/a;)V

    invoke-interface {v0, v2}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    iget-object v0, p0, Lcom/xingbook/park/activity/ai;->a:Lcom/xingbook/park/activity/LoginAct;

    invoke-static {v0}, Lcom/xingbook/park/activity/LoginAct;->e(Lcom/xingbook/park/activity/LoginAct;)V

    goto :goto_0
.end method
